﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExceptionParser
{
    public partial class Results : Form
    {
        public Results()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Occurs, when the form loads.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Results_Load(object sender, EventArgs e) //Write the results to the labels
        {
            labelTry.Text = (Program.Try_s).ToString();
            labelCatch.Text = (Program.Catch_s).ToString();
        }

        /// <summary>
        /// Occurs, when the "Ok" button is pressed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOk_Click(object sender, EventArgs e) 
        {
            this.Close();
        }
    }
}
